From 886d6d4581022e5b2e2f15e07a5d3b6c18dba459 Mon Sep 17 00:00:00 2001 From: "adsharma@los-vmm.sc.intel.com" Date: Tue, 9 Aug 2005 11:06:44 -0800 Subject: [PATCH] Improved error reporting on vmlaunch/vmresume failure. Signed-off-by: Yunhong Jiang Signed-off-by: Arun Sharma --- xen/arch/x86/vmx_vmcs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/x86/vmx_vmcs.c b/xen/arch/x86/vmx_vmcs.c index 8c33a8dbfc..a63f892a34 100644 --- a/xen/arch/x86/vmx_vmcs.c +++ b/xen/arch/x86/vmx_vmcs.c @@ -529,11 +529,17 @@ int store_vmcs(struct arch_vmx_struct *arch_vmx, u64 phys_ptr) void vm_launch_fail(unsigned long eflags) { + unsigned long error; + __vmread(VM_INSTRUCTION_ERROR, &error); + printk(" error code %lx\n", error); __vmx_bug(guest_cpu_user_regs()); } void vm_resume_fail(unsigned long eflags) { + unsigned long error; + __vmread(VM_INSTRUCTION_ERROR, &error); + printk(" error code %lx\n", error); __vmx_bug(guest_cpu_user_regs()); } -- 2.30.2